home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / blitzbasic / blitz-list200994.lha / blitz-list / 000448_blitz-list-request_Sun Jul 3 19:31:48 1994.msg < prev    next >
Internet Message Format  |  1994-09-20  |  3KB

  1. Received: from nwnexus.wa.com (nwnexus.wa.com [192.135.191.1]) by kantti.helsinki.fi (8.6.9/8.6.5) with SMTP id TAA01927 for <blitz-list@helsinki.fi>; Sun, 3 Jul 1994 19:30:36 +0300
  2. Received: from golden.ncw.net ([199.79.131.1]) by nwnexus.wa.com with SMTP id AA16721
  3.   (5.65c/IDA-1.4.4 for <blitz-list@helsinki.fi>); Sun, 3 Jul 1994 09:29:08 -0700
  4. Date: Sun, 3 Jul 1994 09:24:25 -700 (PDT)
  5. From: Joel Corn <darksoft@golden.ncw.net>
  6. Subject: Re: exec
  7. To: MyxxMatch@cup.portal.com
  8. Cc: blitz-list@helsinki.fi
  9. In-Reply-To: <9407030820.1.25465@cup.portal.com>
  10. Message-Id: <Pine.3.89.9407030910.A20436-0100000@golden.ncw.net>
  11. Mime-Version: 1.0
  12. Content-Type: TEXT/PLAIN; charset=US-ASCII
  13. Sender: darksoft@golden.ncw.net
  14. X-Status: 
  15. Status: RO
  16.  
  17. On Sun, 3 Jul 1994 MyxxMatch@cup.portal.com wrote:
  18.  
  19. > What is the command EXEC?
  20. > I am looking for a way to execute external programs or send DOS
  21. > commands and someone suggested this command.
  22. > Is it documented in BUM 6?
  23. > I just bought Blitz about two weeks ago and the issues were 1-5.
  24.  
  25. You must be referring to the dos.library Execute command. First of all, 
  26. get the RKM's (Rom Kernal Manuals). At the very least get the 
  27. Includes&Autodocs and the Libraries. These two alone should be able to 
  28. answer a lot of your questions.
  29.  
  30. Now, how to execute external programs or send DOS commands. Like so:
  31.  
  32. command$="List DF0:"+CHR$(0) <--- Your command must be a string terminated
  33.                                   w/CHR$(0). This is known as a 
  34.                                   NULL-terminated string
  35.  
  36. Execute_ &command$,0,0 <--- This is what does it. Execute_ , and this is
  37.                             how you type it in Blitz, has 3 parameters.
  38.                             Parameter 1 is the command string. Think of it
  39.                             as a line you'd type in a CLI. Parameters 2 and
  40.                             3 are the input and output file handles. You can
  41.                             leave these at 0 if you don't want to interact
  42.                             with or see results from the Execute_ command.
  43.  
  44. There's another command, for 2.0 and above, called SystemTagList_ , which 
  45. is more advanced than Execute_, but get the RKM's FIRST! Let me know if 
  46. you need more help with this.
  47.  
  48. > And one last thing...What is this TextEntryGadget I just read about?
  49. > It sounds like just the thing I need for something I am writing.
  50. > Thanx all...
  51.  
  52. Where did you just read about it? If it's gadtools, yep, it's there. Read 
  53. BUM#5 or get the RKM's. What are you trying to do?
  54.  
  55. Joel 
  56.  
  57. *****************************************************************************
  58. * Joel A. Corn - Owner/Head Programmer              darksoft@golden.ncw.net *
  59. * DarkSoft Computers/DarkSoftWare                            1-509-886-0581 *
  60. *****************************************************************************
  61.